package com.example.service;

import com.example.entity.StudentAnswer;

import java.util.List;

/**
 * @author： wzz
 * @date： 2021-12-04 15:35
 */

public interface StudentAnswerService {

    /**
     * 添加学生单选题答案
     * @param studentAnswer
     * @return
     */
    int insertOption(StudentAnswer studentAnswer);

    int insertMu(StudentAnswer studentAnswer);


    /**
     *
     * @param studentNumber
     * @return
     */
    List<StudentAnswer> getAnswers(String studentNumber,String book_name,String menu_topic);

    /**
     * 修改视频看的时间
     * @param studentNumber
     * @return
     */
    int updateVideoDuration(String studentNumber, String book_name, String menu_topic,Integer duration);

    /**
     * 批改分数
     * @param studentAnswer
     * @return
     */
    Integer updateScore(StudentAnswer studentAnswer);


    List<StudentAnswer> getAnswerCheck(String book_name);

    Integer getVideoTime(String studentNumber, String book_name, String menu_topic);

}
